package io.gitee.yxsnake.embark.redis.configuration.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * @author snake
 * @description
 * @since 2024/10/27 12:33
 */
@Data
@Validated
@ConfigurationProperties("redis.cache")
public class CustomCacheProperties {

    /**
     * {@link #redisScanBatchSize} 默认值
     */
    private static final Integer REDIS_SCAN_BATCH_SIZE_DEFAULT = 30;

    /**
     * redis scan 一次返回数量
     */
    private Integer redisScanBatchSize = REDIS_SCAN_BATCH_SIZE_DEFAULT;

    private String bizPrefix;

}
